package com.example.smallmall.dto;

import com.example.smallmall.entity.SpGoodsAttr;
import com.example.smallmall.entity.SpGoodsPics;

import java.math.BigDecimal;
import java.util.List;

/**
 * 商品添加接收数据参数
 */
public class GoodsParam {
    /**
     * 主键id
     */
    private Integer goodsId;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品价格
     */
    private BigDecimal goodsPrice;

    /**
     * 商品数量
     */
    private Integer goodsNumber;

    /**
     * 商品重量
     */
    private Integer goodsWeight;

    /**
     * 类型id
     */
    private Integer catId;

    /**
     * 商品详情介绍
     */
    private String goodsIntroduce;

    /**
     * 图片logo大图
     */
    private String goodsBigLogo;

    /**
     * 图片logo小图
     */
    private String goodsSmallLogo;

    /**
     * 0:正常  1:删除
     */
    private Boolean isDel;

    /**
     * 添加商品时间
     */
    private Integer addTime;

    /**
     * 修改商品时间
     */
    private Integer updTime;

    /**
     * 软删除标志字段
     */
    private Integer deleteTime;

    /**
     * 分类ID组
     */
    private int[] catIds;
    /**
     * 热卖数量
     */
    private Integer hotMumber;

    /**
     * 是否促销
     */
    private Boolean isPromote;

    /**
     * 商品状态 0: 未通过 1: 审核中 2: 已审核
     */
    private Integer goodsState;

    /**
     * 商品相册
     */
    private SpGoodsPics spGoodsPics;

    public SpGoodsPics getSpGoodsPics() {
        return spGoodsPics;
    }

    public void setSpGoodsPics(SpGoodsPics spGoodsPics) {
        this.spGoodsPics = spGoodsPics;
    }

    /**
     * 商品属性
     */
    private List<SpGoodsAttr> spGoodsAttrs;

    public Integer getGoodsId() {
        return goodsId;
    }

    public GoodsParam setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
        return this;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public GoodsParam setGoodsName(String goodsName) {
        this.goodsName = goodsName;
        return this;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public GoodsParam setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
        return this;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public GoodsParam setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
        return this;
    }

    public Integer getGoodsWeight() {
        return goodsWeight;
    }

    public GoodsParam setGoodsWeight(Integer goodsWeight) {
        this.goodsWeight = goodsWeight;
        return this;
    }

    public Integer getCatId() {
        return catId;
    }

    public GoodsParam setCatId(Integer catId) {
        this.catId = catId;
        return this;
    }

    public String getGoodsIntroduce() {
        return goodsIntroduce;
    }

    public GoodsParam setGoodsIntroduce(String goodsIntroduce) {
        this.goodsIntroduce = goodsIntroduce;
        return this;
    }

    public String getGoodsBigLogo() {
        return goodsBigLogo;
    }

    public GoodsParam setGoodsBigLogo(String goodsBigLogo) {
        this.goodsBigLogo = goodsBigLogo;
        return this;
    }

    public String getGoodsSmallLogo() {
        return goodsSmallLogo;
    }

    public GoodsParam setGoodsSmallLogo(String goodsSmallLogo) {
        this.goodsSmallLogo = goodsSmallLogo;
        return this;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public GoodsParam setIsDel(Boolean isDel) {
        this.isDel = isDel;
        return this;
    }

    public Integer getAddTime() {
        return addTime;
    }

    public GoodsParam setAddTime(Integer addTime) {
        this.addTime = addTime;
        return this;
    }

    public Integer getUpdTime() {
        return updTime;
    }

    public GoodsParam setUpdTime(Integer updTime) {
        this.updTime = updTime;
        return this;
    }

    public Integer getDeleteTime() {
        return deleteTime;
    }

    public GoodsParam setDeleteTime(Integer deleteTime) {
        this.deleteTime = deleteTime;
        return this;
    }

    public int[] getCatIds() {
        return catIds;
    }

    public GoodsParam setCatIds(int[] catIds) {
        this.catIds = catIds;
        return this;
    }

    public Integer getHotMumber() {
        return hotMumber;
    }

    public GoodsParam setHotMumber(Integer hotMumber) {
        this.hotMumber = hotMumber;
        return this;
    }

    public Boolean getIsPromote() {
        return isPromote;
    }

    public GoodsParam setIsPromote(Boolean isPromote) {
        this.isPromote = isPromote;
        return this;
    }

    public Integer getGoodsState() {
        return goodsState;
    }

    public GoodsParam setGoodsState(Integer goodsState) {
        this.goodsState = goodsState;
        return this;
    }


    public List<SpGoodsAttr> getSpGoodsAttrs() {
        return spGoodsAttrs;
    }

    public GoodsParam setSpGoodsAttrs(List<SpGoodsAttr> spGoodsAttrs) {
        this.spGoodsAttrs = spGoodsAttrs;
        return this;
    }

}
